package com.financial.service.integralpay.controller;


import com.financial.service.integralpay.service.FinancialIntegralPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 平台积分支付
 * 
 * @author zhaopengjun
 * @email 1428939700@qq.com
 * @date 2019-08-16 23:16:32
 */
 
@RestController
@RequestMapping("/gyintegralpay")
public class FinancialIntegralPayController {

	@Autowired
    private FinancialIntegralPayService integralPayService;

	/**
	 * @Author zhaopengjun
	 * @Description //积分支付
	 * @Date 14:21 2019/8/28
	 * @Param 
	 * @return 
	 **/
	@PostMapping("/integralprepay")
	public Map<String,Object> integralprepay(@RequestParam Map<String,Object> reqMap){

		return integralPayService.integralprepay(reqMap);
	}

	/**
	 * @Author zhaopengjun
	 * @Description //积分支付异步回执
	 * @Date 14:21 2019/8/28
	 * @Param
	 * @return
	 **/
	@PostMapping("/integralpayAsyn")
	public Map<String,Object> integralpayAsyn(@RequestParam Map<String,Object> reqMap){

		return integralPayService.integralpayAsyn(reqMap);
	}
	/**
	 * 主动查询预支付
	 */
	@PostMapping("/queryIntegralpay")
	public String queryIntegralpay(@RequestParam Map<String,Object> paraMap){

		return integralPayService.queryIntegralpay(paraMap);
	}
}
